We are in the process of migrating from Remedy to ServiceNow. From time to time using Remedy, whenever a ticket is not created from SolarWinds we will get the actual SWQL query verbiage in the alert. I'm able to mimic that in my ServiceNow testing, but I would like to suppress the actual query from the alert email if the ticket is not created (see below).

This is the code I'm using in my alert to create the last line:
ServiceNow Incident:${N=SWQL;M=SELECT IncidentNumber FROM Orion.ServiceNow.AlertIncident WHERE AlertObjectID = ${N=Alerting;M=AlertObjectID}order by IncidentNumber DESC}
How do I remove the SWQL query from the alert email if the incident ticket is not created?